package com.websuites.esb.plugins.kcbp;

import com.szkingdom.kcbpcli.KCBPReturnCode;

public class KcbpResult implements IKcbpResult
{
	protected int iErrorCode = KCBPReturnCode.RC_OK;	
	protected String sErrorMessage = "OK";	
	protected String sForwardCode = null;

	protected Object oResult;
	
	public Object getResult()
	{
		return this.oResult;
	}
	
	public void setResult(Object oResult)
	{
		this.oResult = oResult;
	}

	public int getErrorCode()
	{
		return this.iErrorCode;
	}

	public void setErrorCode(int iErrorCode)
	{
		this.iErrorCode = iErrorCode;
	}

	public String getErrorMessage()
	{	
		return this.sErrorMessage;
	}
	
	public void setErrorMessage(String sErrorMessage)
	{
		this.sErrorMessage = sErrorMessage;
	}
	
	public boolean isSuccessful()
	{
		return iErrorCode == KCBPReturnCode.RC_OK;
	}
}
